#if (${paginator.Nums} > 0)
<ul class="pagination pagination-sm">
    <li><span>共 ${paginator.Nums} 条数据 </span></li>
    <li class="pagination-select">
        <span>
        <select class="pagination-select-xs" onchange="window.location=this.value">
            ##$index, $numSelect
            #foreach ($numSelect in ${paginator.PerPageNumsSelect})
                <option value="${paginator.PrePageNumLink} ${numSelect}" 
                #if (${paginator.PerPageNums} == ${numSelect})
                    selected="selected" 
                #end
                >${numSelect}条/页</option>
            #end
        </select>
    </span>
    </li>
    #if (${paginator.HasPrev})
    <li><a href="${paginator.PageLinkFirst}">首页</a></li>
    <li><a href="${paginator.PageLinkPrev}"><span><i class="glyphicon glyphicon-backward"></i></span></a></li>
    #else
    <li class="disabled"><a>首页</a></li>
    <li class="disabled"><a><span><i class="glyphicon glyphicon-backward"></i></span></a></li>
    #end
    #foreach ($page in ${paginator.Pages})
    <li
    #if (${paginator.IsActive}) 
        class="active"
    #end
    >
        <a href="${paginator.PageLink} ${page}">${page}</a>
    </li>
    #end
    #if (${paginator.HasNext})
    <li><a href="${paginator.PageLinkNext}"><span><i class="glyphicon glyphicon-forward"></i></span></a></li>
    <li><a href="${paginator.PageLinkLast}">尾页</a></li>
    #else
    <li class="disabled"><a><span><i class="glyphicon glyphicon-forward"></i></span></a></li>
    <li class="disabled"><a>尾页</a></li>
    #end
</ul>
#end